#include "includes.h"

CvCapture* capture;
IplImage* frame;
htaTracker t;
htaPose pose;

int main(int argc, char* argv[]) { 
	
	printf("Welcome to Hand-Tracking for Applications!\n");
	if (argc<2){ t.initTracker(capture); }
	else { t.initTracker(capture,argv[1]); }
	
	// Create openCV window
	cvNamedWindow("video",CV_WINDOW_AUTOSIZE);

	int key = -1;

	while (key != 27) {
		t.trackObject();
		cvShowImage("video",t.getFrame());
		
		key = cvWaitKey(1);
	}

	return 0;
}